package com.yungu.swift.order.model.vo;

import com.yungu.swift.base.model.BaseVo;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * OrderCostItem 费用明细项目
 *
 * @author Zoro
 * @date 2016/11/29
 */
public class OrderCostItemVo implements Serializable {

    @ApiModelProperty(value = "费用项目")
    private String item;

    @ApiModelProperty(value = "费用")
    private String cost;

    @ApiModelProperty(value = "排序", example = "0")
    private Integer sort;

    @ApiModelProperty(value = "是否抵扣金额")
    private Boolean isDeductible;

    @ApiModelProperty(value = "是否有颜色")
    private Boolean colored;

    public OrderCostItemVo(String item, String cost, Integer sort, boolean isDeductible) {
        this.item = item;
        this.cost = cost;
        this.sort = sort;
        this.isDeductible = isDeductible;
    }

    /**
     * 处理颜色需要特殊显示的费用项
     */
    public OrderCostItemVo(String item, String cost, Integer sort, boolean isDeductible, Boolean colored) {
        this.item = item;
        this.cost = cost;
        this.sort = sort;
        this.isDeductible = isDeductible;
        this.colored = colored;
    }

    public String getItem() {
        return item;
    }

    public void setItem(String item) {
        this.item = item;
    }

    public String getCost() {
        return cost;
    }

    public void setCost(String cost) {
        this.cost = cost;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public boolean isDeductible() {
        return isDeductible;
    }

    public void setDeductible(boolean deductible) {
        isDeductible = deductible;
    }

    public Boolean getColored() {
        return colored;
    }

    public void setColored(Boolean colored) {
        this.colored = colored;
    }
}
